import { ApiProperty, OmitType, PartialType } from "@nestjs/swagger";
import { CreateFileDto } from "./create-file.dto";

export class QueryFileDto extends PartialType(OmitType(CreateFileDto, ['content', 'name', 'size', 'type', 'createdAt'])) {
    @ApiProperty({
        description: '页码',
        example: 1,
        required: false
    })
    pageNum?: number;

    @ApiProperty({
        description: '每页数量',
        example: 10,
        required: false
    })
    pageSize?: number;
    
    @ApiProperty({
        description: '是否仅查询文件夹',
        example: false,
        required: false
    })
    onlyFolder?: boolean;
} 